//
//  Const.h
//  CreditManger
//
//  Created by chaiyanan on 15/10/13.
//  Copyright © 2015年 jinxin. All rights reserved.
//

#ifndef Const_h
#define Const_h

#define DefaultSystemVersion    [[UIDevice currentDevice]systemVersion]
#define DefaultAppVersion       [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]

#define isIphone4or5        [UIScreen mainScreen].bounds.size.width <=320
#define IsIphone4           [[UIScreen mainScreen] bounds].size.height <= 480
#define IsNotIphone4        [[UIScreen mainScreen] bounds].size.height > 480
#define IsIphone5           ([[UIScreen mainScreen] bounds].size.width == 320&&[[UIScreen mainScreen] bounds].size.height == 568)
#define IsIphone6           [[UIScreen mainScreen] bounds].size.width == 375
#define IsIphone6P           [[UIScreen mainScreen] bounds].size.width == 414

//----------------------------------------------------------------------------

#pragma mark - reCode
#define REGIST_CODE_TIME @"REGIST_CODE_TIME"
#define FORGET_CODE_TIME @"FORGET_CODE_TIME"
#define ADDBANKCARD_CODE_TIME @"ADDBANKCARD_CODE_TIME"
#define BINDPHONE_CODE_TIME @"BINDPHONE_CODE_TIME"
#define FINDPWD_CODE_TIME   @"FINDPWD_CODE_TIME"
#define MODIFYPWD_CODE_TIME @"MODIFYPWD_CODE_TIME"
#define MODIFYBUYPWD_CODE_TIME @"MODIFYBUYPWD_CODE_TIME"
#define RELEASEBANK_CODE_TIME @"RELEASEBANK_CODE_TIME"
#define INVESTSURE_CODE_TIME   @"INVESTSURE_CODE_TIME"


#pragma mark - Key
#define Key_Code        @"errorCode"
#define Key_Msg         @"errorMessage"
#define Key_Data        @"data"

#define Key_YunChannelid    @"YunChannelid"
#define Key_YunUserid       @"YunUserid"

#define Key_mobile      @"mobile"
#define Key_gid         @"gid"
#define Key_imageCode   @"imageCode"

#define Key_mobile      @"mobile"
#define Key_password    @"password"
#define Key_inviteCode  @"inviteCode"
#define Key_mobileCode  @"mobileCode"
#define Key_os          @"os"
#define Key_gid         @"gid"
#define Key_appVersion  @"appVersion"
#define Key_appUrl      @"appUrl"
#define Key_updateStatus    @"updateStatus"
#define Key_channel     @"channel"
#define Key_factory     @"factory"
#define Key_model       @"model"
#define Key_osVersion   @"osVersion"
#define Key_resolution  @"resolution"
#define Key_accountMoney @"accountMoney"
#define Key_uid         @"uid"
#define Key_token       @"token"
#define Key_username    @"username"
#define Key_cardno      @"cardno"
#define Key_headImg     @"headImg"
#define Key_identityStatus      @"identityStatus"

#define Key_file        @"file"
#define Key_file1       @"file1"
#define Key_file2       @"file2"
#define Key_file3       @"file3"
#define Key_file4       @"file4"
#define Key_id          @"id"
#define Key_sort        @"sort"
#define Key_title       @"title"
#define Key_createTime  @"createTime"
#define Key_content     @"content"

#define Key_realName    @"realName"
#define Key_cardNo      @"cardNo"
#define Key_authCode    @"authCode"

#define Key_userName    @"userName"
#define Key_mobile      @"mobile"
#define Key_confirmePassword    @"confirmePassword"
#define Key_email       @"email"
#define Key_authCode    @"authCode"
#define Key_spassword   @"spassword"
#define Key_loginName   @"loginName"
#define Key_answers     @"answers"

#define Key_zxList      @"zxList"
#define Key_cardtype    @"cardtype"
#define Key_source      @"source"
#define Key_merry       @"merry"
#define Key_realname    @"realname"
#define Key_summaryData @"summaryData"
#define Key_state       @"state"
#define Key_xinyNum     @"xinyNum"
#define Key_zhufNum     @"zhufNum"
#define Key_qitNum      @"qitNum"

#define Key_timeunit    @"timeunit"
#define Key_quantGroupToken @"quantGroupToken"
#define Key_url         @"url"

#define Key_productName @"productName"
#define Key_productCode @"productCode"
#define Key_interestRate @"interestRate"
#define Key_increaseRate @"increaseRate"
#define Key_productUrl   @"productUrl"
#define Key_operator    @"operator"
#define Key_network     @"network"
#define Key_loginPlace  @"loginPlace"

#define Key_bindCardStatus  @"bindCardStatus"
#define Key_bankName        @"bankName"
#define Key_bankCode        @"bankCode"
#define Key_bankLimit       @"bankLimit"
#define Key_redId           @"redId"
#define Key_restTimes       @"restTimes"

#define Key_userMobile      @"userMobile"
#define Key_status          @"status"
#define Key_reward          @"reward"
#define Key_registTime      @"registTime"
#define Key_bankCardId      @"bankCardId"
#define Key_bankCardno      @"bankCardno"

#define Key_yesterdayIncome @"yesterdayIncome"
#define Key_userTotalIncome @"userTotalIncome"
#define Key_currentMoney    @"currentMoney"
#define Key_experienceMoney @"experienceMoney"
#define Key_experienceIncome    @"experienceIncome"
#define Key_principalIncome @"principalIncome"
#define Key_increaseIncome  @"increaseIncome"
#define Key_pageNum         @"pageNum"
#define Key_incomeMonth     @"incomeMonth"
#define Key_incomeList      @"incomeList"
#define Key_incomeMoney     @"incomeMoney"
#define Key_incomeDate      @"incomeDate"
#define Key_incomeType      @"incomeType"

#define Key_investMoney     @"investMoney"
#define Key_bankCardShort   @"bankCardShort"
#define Key_accountMobile   @"accountMobile"
#define Key_orderBillCode   @"orderBillCode"
#define Key_investMonth     @"investMonth"
#define Key_investList      @"investList"
#define Key_investTime      @"investTime"
#define Key_investStatus    @"investStatus"
#define Key_distillMonth    @"distillMonth"
#define Key_distillList     @"distillList"
#define Key_distillMoney    @"distillMoney"
#define Key_distillTime     @"distillTime"
#define Key_distillStatus   @"distillStatus"
#define Key_redRate         @"redRate"
#define Key_redComment      @"redComment"
#define Key_shakeTimes      @"shakeTimes"
#define Key_redName         @"redName"
#define Key_redSource       @"redSource"
#define Key_redStatus       @"redStatus"
#define Key_effectDate      @"effectDate"
#define Key_moneyType       @"moneyType"
#define Key_moneyTitle      @"moneyTitle"
#define Key_amountMoney     @"amountMoney"
#define Key_giveDate        @"giveDate"
#define Key_expireDate      @"expireDate"
#define Key_effectStatus    @"effectStatus"

#define Key_problemTitle    @"problemTitle"
#define Key_problemUrl      @"problemUrl"
#define Key_tradingPwd      @"tradingPwd"

#define Key_investLimitInfo @"investLimitInfo"
#define Key_orderBillToken  @"orderBillToken"
#define Key_investMobileCode    @"investMobileCode"
#define Key_interestDate        @"interestDate"
#define Key_idCardno            @"idCardno"

#define Key_activityName        @"activityName"
#define Key_activityImg         @"activityImg"
#define Key_activityUrl         @"activityUrl"

#define Key_msgTitle            @"msgTitle"
#define Key_msgContent          @"msgContent"
#define Key_msgUrl              @"msgUrl"
#define Key_msgTime             @"msgTime"
#define Key_singleTimeLimit     @"singleTimeLimit"

#define Key_accountBankStatus   @"accountBankStatus"
#define Key_accountBank   @"accountBank"
#define Key_tradingPwdStatus    @"tradingPwdStatus"
#define Key_restDistillTimes    @"restDistillTimes"
#define Key_distillMaxMoney     @"distillMaxMoney"
#define Key_arrivalHour         @"arrivalHour"
#define Key_accountStatus       @"accountStatus"
#define Key_servicePhone        @"servicePhone"
#define Key_cardValidToken      @"cardValidToken"
#define Key_cardValidCode       @"cardValidCode"

#define Key_baiduUserId         @"baiduUserId"
#define Key_baiduChannelId         @"baiduChannelId"
#define Key_pushStatus              @"pushStatus"
#define Key_investNote              @"investNote"
#define Key_distillNote             @"distillNote"

#define Key_regShareImg             @"regShareImg"
#define Key_regShareUrl             @"regShareUrl"
#define Key_regShareTitle           @"regShareTitle"
#define Key_regShareDesc            @"regShareDesc"

#define Key_customerServicePhone    @"customerServicePhone"
#define Key_customerServiceQQ       @"customerServiceQQ"

#define Key_borrowerName            @"borrowerName"
#define Key_borrowerCardno          @"borrowerCardno"
#define Key_loanMoney               @"loanMoney"
#define Key_loanDate                @"loanDate"
#define Key_loanPeriod              @"loanPeriod"
#define Key_expireDate              @"expireDate"
#define Key_contractUrl             @"contractUrl"
#define Key_protocolStatus          @"protocolStatus"
#define Key_protocolUrl             @"protocolUrl"
#define Key_tradingPwdLockStatus    @"tradingPwdLockStatus"

#define Key_redShareImg             @"redShareImg"
#define Key_redShareUrl             @"redShareUrl"
#define Key_redShareTitle           @"redShareTitle"
#define Key_redShareDesc            @"redShareDesc"
//----------------------------------------------------------------------------

#pragma mark -
#pragma mark - Method

#define Method_getRegMobileCode         @"/user/nl/getRegMobileCode.do"
#define Method_checkMobileCode          @"/user/nl/checkMobileCode.do"
#define Method_checkRegMobileCode       @"/user/nl/checkRegMobileCode.do"
#define Method_regist                   @"/user/nl/regist.do"
#define Method_login                    @"/user/nl/login.do"
#define Method_getPwdMobileCode         @"/user/nl/getPwdMobileCode.do"

//#define Method_getPwdImageCode          @"/user/getPwdImageCode.do"
//#define Method_checkPwdMobileCode       @"/user/checkPwdMobileCode.do"

#define Method_resetUserPwd             @"/user/nl/resetUserPwd.do"
#define Method_userIdentity             @"/user/userIdentity.do"
#define Method_uploadImg                @"/user/uploadImg.do"
#define Method_getUserInfo              @"/user/getUserInfo.do"
#define Method_logout                   @"/user/logout.do"
#define Method_getProductInfo           @"/product/nl/getProductInfo.do"
#define Method_getProductUrl            @"/product/nl/getProductUrl.do"
#define Method_listSysNotice            @"/notice/nl/listSysNotice.do"

#define Method_getRegAgreementUrl       @"/config/nl/getRegAgreementUrl.do"
#define Method_getRegInvitingUrl        @"/config/nl/getRegInvitingUrl.do"

#define Method_getUserStatus            @"/user/getUserStatus.do"

#define Method_getBankList              @"/bankLimit/getBankList.do"
#define Method_getInviteCode            @"/invite/getInviteCode.do"
#define Method_listInviteUser           @"/invite/listInviteUser.do"

#define Method_listBankCard             @"/bankCard/listBankCard.do"
#define Method_getIncomeSummary         @"/income/getIncomeSummary.do"
#define Method_getEveryTypeIncome       @"/income/getEveryTypeIncome.do"
#define Method_getEveryDayIncome        @"/income/getEveryDayIncome.do"
#define Method_getIncomeByDate          @"/income/getIncomeByDate.do"

#define Method_getSecurityUrl           @"/config/nl/getSecurityUrl.do"
#define Method_getProblemUrl            @"/config/nl/getProblemUrl.do"
#define Method_getProductProtocolUrl    @"/product/nl/getProductProtocolUrl.do"

//#define Method_getDistillRecord         @"/distill/getDistillRecord.do"
//#define Method_userShakeRed             @"/userActivityRed/userShakeRed.do"
//#define Method_enforceUserRed           @"/userActivityRed/enforceUserRed.do"
//#define Method_getUserRegistUrl         @"/config/nl/getUserRegistUrl.do"


#define Method_userInvest               @"/invest/userInvest.do"
#define Method_getInvestRecord          @"/invest/getInvestRecord.do"
#define Method_getDistillRecord         @"/distill/getDistillRecord.do"
#define Method_getShakeRedTimes         @"/red/getShakeRedTimes.do"
//#define Method_userShakeRed             @"/red/userShakeRed.do"
#define Method_getUserRedResult         @"/red/getUserRedResult.do"
#define Method_getInviteUserRed         @"/red/getInviteUserRed.do"

//#define Method_getUserRedRecord         @"/red/getUserRedRecord.do"
#define Method_getUserMoneyList         @"/money/getUserMoneyList.do"

#define Method_getUserRedRecord         @"/red/getUserRedList.do"
#define Method_userFeedback             @"/feedback/userFeedback.do"

#define Method_getProblemList           @"/problem/nl/getProblemList.do"
#define Method_setTradingPwd            @"/invest/setTradingPwd.do"

#define Method_getUserInvestLimit       @"/invest/getUserInvestLimit.do"
#define Method_bindBankCardAndInvest    @"/invest/bindBankCardAndInvest.do"
#define Method_userConfirmInvest        @"/invest/userConfirmInvest.do"
#define Method_bindBankCardConfirm      @"/bankCard/bindBankCardConfirm.do"

#define Method_getActivityList          @"/activity/nl/getActivityList.do"
#define Method_getUserMsgList           @"/message/getUserMsgList.do"

#define Method_userDistill              @"/distill/userDistill.do"
#define Method_userConfirmDistill       @"/distill/userConfirmDistill.do"
#define Method_setAccountBank           @"/bankCard/setAccountBank.do"

#define Method_bindBankCard             @"/bankCard/bindBankCard.do"
#define Method_disbindBankCard          @"/bankCard/disbindBankCard.do"
#define Method_disbindBankCardConfirm   @"/bankCard/disbindBankCardConfirm.do"

#define Method_getBankServicePhone      @"/distill/getBankServicePhone.do"
#define Method_checkVersion             @"/app/nl/checkVersion.do"
#define Method_setPushAccount           @"/user/setPushAccount.do"

#define Method_userOpenPush             @"/user/userOpenPush.do"
#define Method_userClosePush            @"/user/userClosePush.do"

#define Method_getRegSharingUrl         @"/config/nl/getRegSharingUrl.do"
#define Method_getCustomerServicePhone  @"/config/nl/getCustomerServicePhone.do"
#define Method_getIosEvaluateUrl        @"/config/nl/getIosEvaluateUrl.do"
#define Method_getUserAccountMoney      @"/account/getUserAccountMoney.do"

#define Method_getUserLoanContract      @"/loan/getUserLoanContract.do"
#define Method_getUserLoanProtocol      @"/loan/getUserLoanProtocol.do"
#define Method_getTraingPwdLockStatus   @"/distill/getTraingPwdLockStatus.do"
#define Method_getRedSharingUrl         @"/config/nl/getRedSharingUrl.do"


//----------------------------------------------------------------------------
#pragma mark - Notification

#define Notification_LoginDismiss       @"LoginDismiss"
#define Notification_addOrderSuccess    @"addOrderSuccess"
#define Notification_refreshUserInfo    @"refreshUserInfo"
#define Notification_showTopPoint       @"isShowOrHiddenTopRedPoint_WithTopIndex"


#endif /* Const_h */
